/*
 * Copyright (C), 2019, 派光信息技术有限公司
 * Description: 供需深圳下坪场系统
 */
package com.zf.wms.nservice.controller;
import com.zf.wms.nservice.client.BulletinClient;
import com.zf.wms.nservice.utils.ResultMap;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.MediaType;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Description:
 * @Author: Mine
 * @CreateDate: 2019/10/9
 * @email: 1943511692@qq.com
 * @Version: 1.0.0
 */

@Api(tags = "公告管理")
@RestController
@RequestMapping(value = "/bulletin")
public class BulletinManageController {

    @Autowired
    private BulletinClient bulletinClient;

    @RequestMapping(value = "/list", method = RequestMethod.GET, produces = MediaType.APPLICATION_JSON_UTF8_VALUE)
    @ApiOperation("查询公告列表")
    public ResultMap getList(@RequestParam(value = "pageNum", defaultValue = "1") Integer pageNum,
                             @RequestParam(value = "pageSize", defaultValue = "1") Integer pageSize) {


        return bulletinClient.getBulletinList(pageNum, pageSize);
    }





}
